package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderPayment;
import com.nbsaas.boot.order.api.domain.simple.OrderPaymentSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单支付-列表对象转换器
*/

public class OrderPaymentSimpleConvert implements Converter<OrderPaymentSimple, OrderPayment> {




@Override
public OrderPaymentSimple convert(OrderPayment source) {
    OrderPaymentSimple result = new OrderPaymentSimple();

                result.setOrderNo(source.getOrderNo());
                result.setOrderId(source.getOrderId());
                result.setPaymentRemark(source.getPaymentRemark());
                result.setPaymentAmount(source.getPaymentAmount());
                result.setAddDate(source.getAddDate());
                result.setTransactionId(source.getTransactionId());
                result.setPaymentChannel(source.getPaymentChannel());
                result.setPaymentNo(source.getPaymentNo());
                result.setPaymentMethod(source.getPaymentMethod());
                result.setId(source.getId());
                result.setPaymentTime(source.getPaymentTime());
                result.setPaymentStatus(source.getPaymentStatus());
                result.setLastDate(source.getLastDate());


    return result;
}

}